package com.dongdongshop.service;

import com.dongdongshop.pojo.TbSeckillGoods;

import java.util.List;

public interface SeckillService {

    //秒杀商品同步预热
    void hotPrepare();

    //从缓存中查取数据
    List<TbSeckillGoods> getSeckillList();

    //查询抢购页面信息
    TbSeckillGoods getSeckillById(Long seckillId);

    Long createOrder(Long id, Long seckillId );

    //根据用户 id 去缓存中 获取订单id
    Long getOrderId(Long id);
}
